package ru.spbau.lifeincube.logic;

/**
 * @author Montsev Mikhail
 *         Date: 12.05.13
 *         Time: 18:52
 */
public class Main {
    public static void main(String[] args) {
        int st = 3;
        Game game = new Game(new Field(st, st, st), 1, 3, 2);
        int[][][] initialState = {{{1, 0, 1}, {1, 1, 0}, {0, 0, 1}}, {{1, 0, 0}, {0, 1, 0}, {0, 0, 0}}, {{0, 1, 1}, {0, 1, 0}, {1, 0, 0}}};
//        Random random = new Random();
//        int[][][] initialState = new int[st][st][st];
//        for (int i = 0; i < st; i++) {
//            for (int j = 0; j < st; j++) {
//                for (int k = 0; k < st; k++) {
//                    initialState[i][j][k] = random.nextInt(2);
//                }
//            }
//        }
        game.setInitialState(initialState);

        game.printState();
        game.makeMove();
        game.printState();
        game.moveToPrev();
        game.printState();

        game.makeMove();
        game.printState();
        game.moveToPrev();
        game.printState();

        game.makeMove();
        game.printState();
        game.moveToPrev();
        game.printState();

    }
}
